//跳转音乐播放页
export const toMusicPlay = (playUrl, songmid) => {
	uni.setStorage({
		key: "MusicUrl",
		data: {
			playUrl: playUrl,
			songmid: songmid
		},
		success() {
			uni.navigateTo({
				url: "/pages/MusicPlay/MusicPlay"
			})
		},
		fail(err) {
			console.log("缓存失败")
		}
	})
}

// 跳转歌词页
export const toLyric = () => {
	uni.navigateTo({
		url: "/pages/Lyric/Lyric"
	})
}
//前往歌单详细页
export const toSongListDetail = (id) => {
	uni.navigateTo({
		url: "/pages/SongListDetail/SongListDetail?data=" + id
	})
}

//前往歌单列表页
export const toSongLists = (categoryId) => {
	uni.navigateTo({
		url: "/pages/SongLists/SongLists?data=" + categoryId
	})
}
//前往歌单列表页
export const toSongLists2 = (categoryId, categoryName) => {
	const data = {
		categoryId: categoryId,
		categoryName: categoryName
	}
	uni.navigateTo({
		url: "/pages/SongLists/SongLists2?data=" + JSON.stringify(data)
	})
}
//前往全部分类
export const toCateGoryList = () => {
	uni.navigateTo({
		url: "/pages/CateGoryList/CateGoryList"
	})
}